package aimozg.joglfw.figures;

import aimozg.joglfw.GLColor;

/**
* Created by IntelliJ IDEA.
* User: aimozg
* Date: 06.01.11
* Time: 14:11
*/
public abstract class Palette implements PaletteSource {
	public abstract GLColor get(String name);
	public Palette set(String name,GLColor color) throws UnsupportedOperationException{
		throw new UnsupportedOperationException("Unmodifable palette");
	}
	@Override
	public abstract Palette clone();

	@Override
	public Palette getPalette() {
		return this;
	}
}
